package com.dongdong.api;

import com.dongdong.vo.CartVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

import java.util.List;

@FeignClient("dongdong-cart-service")
public interface CartApi {

    @GetMapping("/cart/getCartList")
    public List<CartVO> getCartList(@RequestHeader String accessToken);
}
